<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="css/animate.css" />
		<title></title>
		<style type="text/css">
			* {
				margin: 0;
				padding: 0;
			}
			
			html,
			body {
				width: 100%;
				height: 100%;
			}
			
			body {
				perspective: 1000px;
				transform-style: preserve-3d;
			}
			
			.numn {
				width: 100%;
				height: 100%;
				background-image: url(img/background.png);
				background-size: 100% 100%;
				background-repeat: no-repeat;
				position: relative;
				/*display: none;*/
			}
			
			.smallcar {
				width: 80%;
				position: absolute;
				top: 28%;
				left: 10%;
				z-index: 33;
			}
			
			.smallcar img {
				width: 100%;
			}
			
			.turntable {
				width: 80%;
				position: absolute;
				top: 28%;
				left: 10%;
			}
			
			.turntable img {
				width: 100%;
			}
			
			.finger {
				width: 10%;
				position: absolute;
				top: 50%;
				left: 53%;
				-webkit-animation: "fangda" 0.5s linear infinite;
			}
			
			.finger img {
				width: 100%;
			}
			
			@keyframes fangda {
				from {
					-webkit-transform: translateZ(0px);
				}
				to {
					-webkit-transform: translateZ(100px);
				}
			}
			
			.numn1 {
				width: 100%;
				height: 100%;
				background-color: rgba(0, 0, 0, 0.7);
				position: absolute;
				top: 0;
				left: 0;
				display: none;
			}
			
			.jp8 {
				width: 80%;
				position: absolute;
				top: 15%;
				left: 10%;
			}
			
			.jp8 img {
				width: 100%;
			}
			
			.msg {
				width: 100%;
				position: absolute;
				top: 69%;
			}
			.msg img {
				width: 100%;
			}
			.numn2{
				width: 100%;
				height: 100%;
				background-color: rgba(0, 0, 0, 0.7);
				position: absolute;
				top: 0;
				left: 0;
				display: none;
			}
			.dengji{
					width: 88%;
					position: absolute;
					top: 13%;
					left: 6%;
			}
			.dengji img{
					width: 100%;
			}
			p{
					color: white;
					font-size: 35px;
			}
			.p1{
					position: absolute;
					top:33%;
					left: 8%;
			}
			.in1{
					width: 58%;
					height: 5%;
					position: absolute;
					top: 33%;
					left: 30%;
			}
			.p2{
					position: absolute;
					top: 41%;
					left:8%;
			}
			.tel{
					width: 58%;
					height: 5%;
					position: absolute;
					top: 41%;
					left: 30%;
			}
			.p3{
					position: absolute;
					top: 49%;
					left: 8%;
			}
			.city{
					width: 27%;
					height: 5%;
					position: absolute;
					top: 49%;
					left: 30%;
			}
			.city2{
					width: 27%;
					height: 5%;
					position: absolute;
					top: 49%;
					left: 61%;
			}
			.address{
					width: 58%;
					height: 5%;
					position: absolute;
					top: 58%;
					left: 30%;
			}
			.tian{
					width: 100%;
					position: absolute;
					top: 72%;
			}
			.tian img{
					width: 100%;
			}
		</style>
	</head>

	<body>
		<div class="numn">
			<div class="smallcar"><img src="img/smallcar.png" /></div>
			<div class="turntable"><img src="img/turntable.png" /></div>
			<div class="finger"><img src="img/finger.png" /></div>
		</div>
		<div class="numn1">
			<div class="jp8"><img src="img/jp9.png" /></div>
			<div class="msg"><img src="img/msg.png" /></div>
			
		</div>
		<div class="numn2">
				<div class="dengji"><img src="img/dengji.png"/></div>
				<p class="p1">姓名</p><input type="text" class="in1"/>
				<p class="p2">电话</p><input type="text" class="tel"/>
				<p class="p3">住址</p><input type="text" class="city"/><input type="text" class="city2"/>			
				<input type="text" class="address"/>
				<div class="tian"><img src="img/tianhaolebtn.png"/></div>
		</div>

		<script src="js/jquery-2.1.3.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/touch.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			//转盘
			function zhuan() {
				var e = 0;
				touch.on(".finger", "touchstart", function() {
					clearInterval(timer);
					$(".finger").css("display", "none");
					var timer = setInterval(function() {
						e++;
						$(".smallcar").css({
							transform: " rotate(" + e + "deg)"
						});
						if(e > 450) {
							$(".smallcar").css({
								display: "none"
							})
							$(".numn1").css({
								display: "block"
							})							
							clearInterval(timer);
						}
					})
					//点击填写消息
						$(".msg").click(function() {
								$(".numn").css({
									display: "none"
								})								
								$(".numn2").css({
									display: "block"
								})							
					 });			
					 
					 	
					 
					 
					 	
				});
			}
			zhuan()
			
				
				
		</script>
	</body>

</html>